package com.kust.smarthome.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kust.smarthome.web.dto.UserDto;
import com.kust.smarthome.web.model.EmailCode;
import com.kust.smarthome.web.model.User;
import com.kust.smarthome.web.vo.RegisterVo;

import javax.mail.MessagingException;
import java.security.GeneralSecurityException;

public interface IUserService extends IService<User> {
    User getByUsername(String username);

    String register(RegisterVo registerVo);

    UserDto getUserInfo(Integer userId);

    User findByUsername(String username);

    String appRegister(RegisterVo registerVo) throws GeneralSecurityException, MessagingException;

    String appCode(EmailCode emailCode);
}
